package com.ruoyi.wms.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品对象 wms_goods
 *
 * @author ruoyi
 * @date 2022-04-15
 */
public class WmsGoods extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /** */
  private Long id;

  /** 商品名称 */
  @Excel(name = "商品名称")
  private String name;

  /** 商品编码 */
  @Excel(name = "商品编码")
  private String code;

  /** 所属客户 */
  @Excel(name = "所属客户")
  private Long customerId;

  /** 长 */
  @Excel(name = "长")
  private Double length;

  /** 宽 */
  @Excel(name = "宽")
  private Double width;

  /** 高 */
  @Excel(name = "高")
  private Double height;

  /** 重量 */
  @Excel(name = "重量")
  private Double weight;

  /** 体积 */
  @Excel(name = "体积")
  private Double volume;

  /** 价格 */
  @Excel(name = "价格")
  private BigDecimal price;

  /** 计数单位 */
  @Excel(name = "计数单位")
  private String unit;

  /** 自定义模板ID */
  @Excel(name = "自定义模板ID")
  private Long customId;

  /** 自定义JSON数据 */
  @Excel(name = "自定义JSON数据")
  private String customContext;

  /** 状态（0正常 1停用） */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /** 删除标志（0代表存在 2代表删除） */
  private String delFlag;

  public void setId(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getCode() {
    return code;
  }

  public void setCustomerId(Long customerId) {
    this.customerId = customerId;
  }

  public Long getCustomerId() {
    return customerId;
  }

  public void setLength(Double length) {
    this.length = length;
  }

  public Double getLength() {
    return length;
  }

  public void setWidth(Double width) {
    this.width = width;
  }

  public Double getWidth() {
    return width;
  }

  public void setHeight(Double height) {
    this.height = height;
  }

  public Double getHeight() {
    return height;
  }

  public void setWeight(Double weight) {
    this.weight = weight;
  }

  public Double getWeight() {
    return weight;
  }

  public void setVolume(Double volume) {
    this.volume = volume;
  }

  public Double getVolume() {
    return volume;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }

  public BigDecimal getPrice() {
    return price;
  }

  public void setUnit(String unit) {
    this.unit = unit;
  }

  public String getUnit() {
    return unit;
  }

  public void setCustomId(Long customId) {
    this.customId = customId;
  }

  public Long getCustomId() {
    return customId;
  }

  public void setCustomContext(String customContext) {
    this.customContext = customContext;
  }

  public String getCustomContext() {
    return customContext;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getStatus() {
    return status;
  }

  public void setDelFlag(String delFlag) {
    this.delFlag = delFlag;
  }

  public String getDelFlag() {
    return delFlag;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("id", getId())
        .append("name", getName())
        .append("code", getCode())
        .append("customerId", getCustomerId())
        .append("length", getLength())
        .append("width", getWidth())
        .append("height", getHeight())
        .append("weight", getWeight())
        .append("volume", getVolume())
        .append("price", getPrice())
        .append("unit", getUnit())
        .append("customId", getCustomId())
        .append("customContext", getCustomContext())
        .append("status", getStatus())
        .append("delFlag", getDelFlag())
        .append("createBy", getCreateBy())
        .append("createTime", getCreateTime())
        .append("updateBy", getUpdateBy())
        .append("updateTime", getUpdateTime())
        .append("remark", getRemark())
        .toString();
  }
}
